import BaseModel from '~/models/BaseModel'
import { $wAxios } from '~/utils/api'
import { Admin } from '~/config/api'

export default class Work extends BaseModel {
  name: string = ''
  url: string = ''
  icon: string = ''
  detail: string = ''
  obligation: string = ''
  startTime?: string | Date
  endTime?: string | Date

  dateRange: Array<Date> = []

  deleteApi = Admin.work.delete

  static list () {
    return $wAxios.$get(Admin.work.list)
  }
}
